/*
 * Copyright (c) 2022 Kirky
 * Licensed under the Open Software Licence, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://opensource.org/licenses/osl-3.0.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lingeringdream.luciole.model.entity;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Column;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

/**
 * 类别表
 *
 * @author Kirky
 * @version 1.0
 * @date 2022/4/28
 */
@Entity(tableName = "classification")
public class Classification extends OrmObject {

    @PrimaryKey(autoGenerate = true)
    private Integer id;

    @Column(name = "cid", notNull = true, unique = true, index = true)
    private Long cid;

    @Column(name = "ename", notNull = true)
    private String eName;

    @Column(name = "cname", notNull = true)
    private String cName;

    /**
     * 0：可回收
     * 1：厨余
     * 2：其他
     * 3：有害
     */
    @Column(name = "class", notNull = true)
    private Integer clazz;

    @Column(name = "harmful", notNull = true)
    private String harmful;

    @Column(name = "suggestion", notNull = true)
    private String suggestion;

    @Column(name = "update", notNull = true)
    private Long update;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public Integer getClazz() {
        return clazz;
    }

    public void setClazz(Integer clazz) {
        this.clazz = clazz;
    }

    public String getHarmful() {
        return harmful;
    }

    public void setHarmful(String harmful) {
        this.harmful = harmful;
    }

    public String getSuggestion() {
        return suggestion;
    }

    public void setSuggestion(String suggestion) {
        this.suggestion = suggestion;
    }

    public Long getUpdate() {
        return update;
    }

    public void setUpdate(Long update) {
        this.update = update;
    }
}
